package com.suixun.service;


import java.util.List;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import com.suixun.entity.DeviceInfo;
import com.suixun.entity.form.ParamForm;
import com.suixun.entity.page.PageModel;
import com.suixun.vo.DeviceVO;

public interface DeviceInitService {
	
	//分页查询设备列表
	PageModel<DeviceInfo> queryDeviceInitlistPage(ParamForm paramForm);
	//新增设备
	String addDevice(ParamForm device);
	
	int updateDevice(ParamForm device);
	
	int deleteDevice(int id);
	
	DeviceInfo queryDeviceByName(ParamForm paramForm);
	
	DeviceInfo queryDeviceByID(DeviceInfo paramForm);
	
	int queryUsedDeviceCounts(DeviceInfo paramForm);
	
	void putDevice(DeviceInfo paramForm);
	
	String importDevice(HSSFWorkbook wb) throws Exception;
	
	PageModel<DeviceVO> queryDeviceTmp(ParamForm paramForm);
	
	String cancelDeviceImport();
	
	int queryAllDeviceRows();
	
	List<DeviceInfo> queryDeviceRepeat();
	
	Object importDeviceReserve(HSSFWorkbook wb,DeviceVO deviceVo) throws Exception;
	
	String putDeviceReserve(DeviceVO deviceVo);
	
	PageModel<DeviceVO> getDeviceReserveCount(DeviceVO deviceVo);
	
	PageModel<DeviceVO> getDeviceReserves(DeviceVO deviceVo);
	
	String cancelLastImport();
	
	void recycleDevice(ParamForm paramForm);
}
